<template>
  <div class="bigbox">
    <div class="img">
      <img :src="cl.img" alt="" />
    </div>
    <div class="content">
      <div class="conleft">
        <div class="title">{{ cl.nm }}</div>
        <div class="english">{{ cl.enm }}</div>
        <div class="cat">{{ cl.cat }}</div>
        <div class="pubdesc" v-if="cl.pubDesc !== ' '">{{ cl.pubDesc }}</div>
        <div class="pubdesc" v-if="cl.pubDesc == ' '"></div>
      </div>
      <div class="conright">
        <div class="sc" v-if="cl.sc"><b>{{ cl.sc }}</b>&nbsp;分</div>
        <div class="scone" v-if="!cl.sc">暂无评分</div>
      </div>
    </div>
  </div>
</template>

<script setup>
defineProps({
  cl: {
    required: true,
  },
});
</script>

<style lang="scss" scoped>
.bigbox {
  width: 95vw;
  height: 15vh;
  margin: 10rem 0 0 10rem;
  display: flex;
  .img {
    width: 66rem;
    height: 90rem;
    img {
      // margin: 10rem 10rem;
      width: 100%;
      height: 100%;
      display: block;
    }
  }
  .content {
    display: flex;
    width: 80vw;
    display: flex;
    margin-left: 5rem;
    padding-bottom: 5rem;
    border-bottom: 1rem solid #aaa;
    justify-content: space-between;
    .conleft {
      width: 60vw;
      overflow: hidden; // 溢出隐藏
      white-space: nowrap; // 强制一行
      text-overflow: ellipsis; // 文字溢出显示省略号
      .title {
        font-size: 17rem;
        margin-top: 4rem;
        color: #333;
        font-weight: 700;
      }
      .english {
        margin: 4rem 0 0 2rem;
        color: #666;
        font-size: 13rem;
        overflow: hidden; // 溢出隐藏
        white-space: nowrap; // 强制一行
        text-overflow: ellipsis; // 文字溢出显示省略号
      }
      .cat{
        margin: 4rem 0 0 2rem;
        color: #666;
        font-size: 13rem;
      }
      .pubdesc{
        margin: 4rem 0 0 2rem;
        color: #666;
        font-size: 13rem;
      }
    }
    .conright{
      line-height: 15vh;
      .sc{
        color: #999;
        font-size: 12rem;
        b{
          font-size: 15rem;
          color: #faaf00;
        }
      }
      .scone{
        color: #999;
        font-size: 12rem;
      }
    }
  }
}
.hz {
  margin-top: 5rem;
  display: flex;
  .hzleft {
    width: 60rem;
    height: 95rem;
    img {
      margin: 10rem 10rem;
      width: 100%;
      height: 100%;
    }
  }
  .hzright {
    width: 80vw;
    display: flex;
    margin-left: 15rem;
    padding-bottom: 5rem;
    border-bottom: 1rem solid #aaa;
    justify-content: space-between;
    .content {
      .title {
        margin: 10rem 0 0 5rem;
        font-size: 17rem;
        font-weight: 700;
        color: #333;
        display: flex;
        .version {
          display: flex;
          p {
            font-size: 10rem;
          }
          :nth-child(1) {
            width: 20rem;
            height: 20rem;
            margin: 2rem 0 0 0;
            transform: scale(0.7, 0.7);
            text-align: center;
            line-height: 20rem;
            background-color: #509fc9;
            color: #fff;
            box-sizing: border-box;
          }
          :nth-child(2) {
            height: 20rem;
            margin: 2rem 0 0 -8rem;
            transform: scale(0.7, 0.7);
            background-color: #fff;
            color: #509fc9;
            border: 1rem solid #509fc9;
            box-sizing: border-box;
          }
        }
      }
      .score {
        margin: 5rem 0 0 5rem;
        font-size: 14px;
        color: #666;
        b {
          color: #faaf00;
        }
      }
      .actor {
        margin: 5rem 0 0 5rem;
        font-size: 14px;
        color: #666;
      }
      .show-info {
        margin: 5rem 0 0 5rem;
        font-size: 14px;
        color: #666;
      }
    }
    .bluebtn {
      width: 45rem;
      height: 25rem;
      padding: 2rem;
      color: #fff;
      line-height: 20rem;
      text-align: center;
      border-radius: 20rem;
      margin: 50rem 10rem 0 0;
      background-color: #509fc9;
    }
    .redbtn {
      width: 45rem;
      height: 25rem;
      padding: 2rem;
      color: #fff;
      margin: 50rem 10rem 0 0;
      line-height: 20rem;
      text-align: center;
      border-radius: 20rem;
      background-color: #f03d37;
    }
  }
}
</style>
